package com.forsythia.sns.service;

import java.util.List;

import com.forsythia.sns.to.FriendTO;
import com.forsythia.sns.to.UserTO;

public interface UserService extends BaseService {

    public UserTO createUserAccount(UserTO user);

    public List<UserTO> findByProperty(String propertyName, Object value);

    public boolean isLoginNameExists(String loginName);

    public boolean isEmailExists(String email);

    public boolean isPassportExists(String passport);

    public boolean isLoginSuccess(String passport, String password);

    public UserTO getUserByPassport(String passport, String password);

    public List<UserTO> getFriends(String userId, int pageNumber, int pageSize);
    
    public FriendTO addFriend(FriendTO friend);

}